package com.kantboot.business.water.web.contrller;

import com.kantboot.business.water.domain.entity.BusWaterVip;
import com.kantboot.business.water.service.IBusWaterVipService;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 商品
 */
@RestController
@RequestMapping("/bus/water/vip")
public class BusWaterVipController {

    @Resource
    private IBusWaterVipService service;

    @RequestMapping("/getAll")
    public RestResult<List<BusWaterVip>> getAll() {
        return RestResult.success(service.getAll(),"getSuccess","获取成功");
    }

    @RequestMapping("/getSelf")
    public RestResult<BusWaterVip> getSelf() {
        return RestResult.success(service.getSelf(),"getSuccess","获取成功");
    }


}
